{extend name="common/base"/}
{block name="style"}

<link rel="stylesheet" href="{__CSS__}/user.css?v={:get_system_config('web','version')}" media="all">
{/block}
<!-- 主体 -->
{block name="body"}
{include file="common/header" /}
<div class="user">
	<div class="user-home"><a href="/">首页</a> - 个人中心</div>
	<div class="user-box clearfix">
		<div class="l user-menu">
			{include file="common/usermenu" /}
		</div>
		<div class="r user-right">
			<div class="user-detail">
				<div class="layui-row">
					 <div class="layui-col-md4">
						<form class="layui-form" method='post' action="{:url('/home/user/class_seats')}" name="bj_code" id="bjForm">
								<div class="layui-input-inline">
									<select name="bj_code" lay-filter="bjSelect">
										{volist name="bjlist" id="v"}
										<option value="{$v.bj_code}">{$v.bj_name}</option>
										{/volist}
									</select>
								</div>
								<button class="layui-btn layui-btn-primary" type="submit">&nbsp;查询&nbsp;</button>
						</form>
					</div>
					<div class="layui-col-md8">
						<div class="user-detail-h3">
							班级座位表  【 {$param['bj_name']} 】
						</div>
					</div>
				</div>

				 <div class="grid-container">
			        <!-- 生成6列8行的网格 -->			        
			        {if isset($userPc.11)}
			        	<div class="grid-item {$userPc.11.login}">
						    {$userPc.11.login_pc}<br>
						    {$userPc.11.st_code}<br>{$userPc.11.name}<i class="layui-icon {$userPc.11.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T11
							  </div>
							{/if}
							{if isset($userPc.21)}
			        	<div class="grid-item {$userPc.21.login}">
						    {$userPc.21.login_pc}<br>
						    {$userPc.21.st_code}<br>{$userPc.21.name}<i class="layui-icon {$userPc.21.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T21
							  </div>
							{/if}
							{if isset($userPc.31)}
			        	<div class="grid-item {$userPc.31.login}">
						    {$userPc.31.login_pc}<br>
						    {$userPc.31.st_code}<br>{$userPc.31.name}<i class="layui-icon {$userPc.31.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T31
							  </div>
							{/if}
							{if isset($userPc.41)}
			        	<div class="grid-item {$userPc.41.login}">
						    {$userPc.41.login_pc}<br>
						    {$userPc.41.st_code}<br>{$userPc.41.name}<i class="layui-icon {$userPc.41.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T41
							  </div>
							{/if}
							{if isset($userPc.51)}
			        	<div class="grid-item {$userPc.51.login}">
						    {$userPc.51.login_pc}<br>
						    {$userPc.51.st_code}<br>{$userPc.51.name}<i class="layui-icon {$userPc.51.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T51
							  </div>
							{/if}
							{if isset($userPc.61)}
			        	<div class="grid-item {$userPc.61.login}">
						    {$userPc.61.login_pc}<br>
						    {$userPc.61.st_code}<br>{$userPc.61.name}<i class="layui-icon {$userPc.61.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T61
							  </div>
							{/if}
			        
			       	{if isset($userPc.12)}
			        	<div class="grid-item {$userPc.12.login}">
						    {$userPc.12.login_pc}<br>
						    {$userPc.12.st_code}<br>{$userPc.12.name}<i class="layui-icon {$userPc.12.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T12
							  </div>
							{/if}
							{if isset($userPc.22)}
			        	<div class="grid-item {$userPc.22.login}">
						    {$userPc.22.login_pc}<br>
						    {$userPc.22.st_code}<br>{$userPc.22.name}<i class="layui-icon {$userPc.22.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T22
							  </div>
							{/if}
							{if isset($userPc.32)}
			        	<div class="grid-item {$userPc.32.login}">
						    {$userPc.32.login_pc}<br>
						    {$userPc.32.st_code}<br>{$userPc.32.name}<i class="layui-icon {$userPc.32.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T32
							  </div>
							{/if}
							{if isset($userPc.42)}
			        	<div class="grid-item {$userPc.42.login}">
						    {$userPc.42.login_pc}<br>
						    {$userPc.42.st_code}<br>{$userPc.42.name}<i class="layui-icon {$userPc.42.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T42
							  </div>
							{/if}
							{if isset($userPc.52)}
			        	<div class="grid-item {$userPc.52.login}">
						    {$userPc.52.login_pc}<br>
						    {$userPc.52.st_code}<br>{$userPc.52.name}<i class="layui-icon {$userPc.52.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T52
							  </div>
							{/if}
							{if isset($userPc.62)}
			        	<div class="grid-item {$userPc.62.login}">
						    {$userPc.62.login_pc}<br>
						    {$userPc.62.st_code}<br>{$userPc.62.name}<i class="layui-icon {$userPc.62.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T62
							  </div>
							{/if}

							{if isset($userPc.13)}
			        	<div class="grid-item {$userPc.13.login}">
						    {$userPc.13.login_pc}<br>
						    {$userPc.13.st_code}<br>{$userPc.13.name}<i class="layui-icon {$userPc.13.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T13
							  </div>
							{/if}
							{if isset($userPc.23)}
			        	<div class="grid-item {$userPc.23.login}">
						    {$userPc.23.login_pc}<br>
						    {$userPc.23.st_code}<br>{$userPc.23.name}<i class="layui-icon {$userPc.23.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T23
							  </div>
							{/if}
							{if isset($userPc.33)}
			        	<div class="grid-item {$userPc.33.login}">
						    {$userPc.33.login_pc}<br>
						    {$userPc.33.st_code}<br>{$userPc.33.name}<i class="layui-icon {$userPc.33.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T33
							  </div>
							{/if}
							{if isset($userPc.43)}
			        	<div class="grid-item {$userPc.43.login}">
						    {$userPc.43.login_pc}<br>
						    {$userPc.43.st_code}<br>{$userPc.43.name}<i class="layui-icon {$userPc.43.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T43
							  </div>
							{/if}
							{if isset($userPc.53)}
			        	<div class="grid-item {$userPc.53.login}">
						    {$userPc.53.login_pc}<br>
						    {$userPc.53.st_code}<br>{$userPc.53.name}<i class="layui-icon {$userPc.53.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T53
							  </div>
							{/if}
							{if isset($userPc.63)}
			        	<div class="grid-item {$userPc.63.login}">
						    {$userPc.63.login_pc}<br>
						    {$userPc.63.st_code}<br>{$userPc.63.name}<i class="layui-icon {$userPc.63.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T63
							  </div>
							{/if}


							{if isset($userPc.14)}
			        	<div class="grid-item {$userPc.14.login}">
						    {$userPc.14.login_pc}<br>
						    {$userPc.14.st_code}<br>{$userPc.14.name}<i class="layui-icon {$userPc.14.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T14
							  </div>
							{/if}
							{if isset($userPc.24)}
			        	<div class="grid-item {$userPc.24.login}">
						    {$userPc.24.login_pc}<br>
						    {$userPc.24.st_code}<br>{$userPc.24.name}<i class="layui-icon {$userPc.24.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T24
							  </div>
							{/if}
							{if isset($userPc.34)}
			        	<div class="grid-item {$userPc.34.login}">
						    {$userPc.34.login_pc}<br>
						    {$userPc.34.st_code}<br>{$userPc.34.name}<i class="layui-icon {$userPc.34.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T34
							  </div>
							{/if}
							{if isset($userPc.44)}
			        	<div class="grid-item {$userPc.44.login}">
						    {$userPc.44.login_pc}<br>
						    {$userPc.44.st_code}<br>{$userPc.44.name}<i class="layui-icon {$userPc.44.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T44
							  </div>
							{/if}
							{if isset($userPc.54)}
			        	<div class="grid-item {$userPc.54.login}">
						    {$userPc.54.login_pc}<br>
						    {$userPc.54.st_code}<br>{$userPc.54.name}<i class="layui-icon {$userPc.54.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T54
							  </div>
							{/if}
							{if isset($userPc.64)}
			        	<div class="grid-item {$userPc.64.login}">
						    {$userPc.64.login_pc}<br>
						    {$userPc.64.st_code}<br>{$userPc.64.name}<i class="layui-icon {$userPc.64.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T64
							  </div>
							{/if}


              {if isset($userPc.15)}
			        	<div class="grid-item {$userPc.15.login}">
						    {$userPc.15.login_pc}<br>
						    {$userPc.15.st_code}<br>{$userPc.15.name}<i class="layui-icon {$userPc.15.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T15
							  </div>
							{/if}
							{if isset($userPc.25)}
			        	<div class="grid-item {$userPc.25.login}">
						    {$userPc.25.login_pc}<br>
						    {$userPc.25.st_code}<br>{$userPc.25.name}<i class="layui-icon {$userPc.25.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T25
							  </div>
							{/if}
							{if isset($userPc.35)}
			        	<div class="grid-item {$userPc.35.login}">
						    {$userPc.35.login_pc}<br>
						    {$userPc.35.st_code}<br>{$userPc.35.name}<i class="layui-icon {$userPc.35.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T35
							  </div>
							{/if}
							{if isset($userPc.45)}
			        	<div class="grid-item {$userPc.45.login}">
						    {$userPc.45.login_pc}<br>
						    {$userPc.45.st_code}<br>{$userPc.45.name}<i class="layui-icon {$userPc.45.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T45
							  </div>
							{/if}
							{if isset($userPc.55)}
			        	<div class="grid-item {$userPc.55.login}">
						    {$userPc.55.login_pc}<br>
						    {$userPc.55.st_code}<br>{$userPc.55.name}<i class="layui-icon {$userPc.55.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T55
							  </div>
							{/if}
							{if isset($userPc.65)}
			        	<div class="grid-item {$userPc.65.login}">
						    {$userPc.65.login_pc}<br>
						    {$userPc.65.st_code}<br>{$userPc.65.name}<i class="layui-icon {$userPc.65.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T65
							  </div>
							{/if}
							{if isset($userPc.16)}
			        	<div class="grid-item {$userPc.16.login}">
						    {$userPc.16.login_pc}<br>
						    {$userPc.16.st_code}<br>{$userPc.16.name}<i class="layui-icon {$userPc.16.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T16
							  </div>
							{/if}
							{if isset($userPc.26)}
			        	<div class="grid-item {$userPc.26.login}">
						    {$userPc.26.login_pc}<br>
						    {$userPc.26.st_code}<br>{$userPc.26.name}<i class="layui-icon {$userPc.26.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T26
							  </div>
							{/if}
							{if isset($userPc.36)}
			        	<div class="grid-item {$userPc.36.login}">
						    {$userPc.36.login_pc}<br>
						    {$userPc.36.st_code}<br>{$userPc.36.name}<i class="layui-icon {$userPc.36.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T36
							  </div>
							{/if}
							{if isset($userPc.46)}
			        	<div class="grid-item {$userPc.46.login}">
						    {$userPc.46.login_pc}<br>
						    {$userPc.46.st_code}<br>{$userPc.46.name}<i class="layui-icon {$userPc.46.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T46
							  </div>
							{/if}
							{if isset($userPc.56)}
			        	<div class="grid-item {$userPc.56.login}">
						    {$userPc.56.login_pc}<br>
						    {$userPc.56.st_code}<br>{$userPc.56.name}<i class="layui-icon {$userPc.56.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T56
							  </div>
							{/if}
							{if isset($userPc.66)}
			        	<div class="grid-item {$userPc.66.login}">
						    {$userPc.66.login_pc}<br>
						    {$userPc.66.st_code}<br>{$userPc.66.name}<i class="layui-icon {$userPc.66.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T66
							  </div>
							{/if}

							{if isset($userPc.17)}
			        	<div class="grid-item {$userPc.17.login}">
						    {$userPc.17.login_pc}<br>
						    {$userPc.17.st_code}<br>{$userPc.17.name}<i class="layui-icon {$userPc.17.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T17
							  </div>
							{/if}
							{if isset($userPc.27)}
			        	<div class="grid-item {$userPc.27.login}">
						    {$userPc.27.login_pc}<br>
						    {$userPc.27.st_code}<br>{$userPc.27.name}<i class="layui-icon {$userPc.27.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T27
							  </div>
							{/if}
							{if isset($userPc.37)}
			        	<div class="grid-item {$userPc.37.login}">
						    {$userPc.37.login_pc}<br>
						    {$userPc.37.st_code}<br>{$userPc.37.name}<i class="layui-icon {$userPc.37.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T37
							  </div>
							{/if}
							{if isset($userPc.47)}
			        	<div class="grid-item {$userPc.47.login}">
						    {$userPc.47.login_pc}<br>
						    {$userPc.47.st_code}<br>{$userPc.47.name}<i class="layui-icon {$userPc.47.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T47
							  </div>
							{/if}
							{if isset($userPc.57)}
			        	<div class="grid-item {$userPc.57.login}">
						    {$userPc.57.login_pc}<br>
						    {$userPc.57.st_code}<br>{$userPc.57.name}<i class="layui-icon {$userPc.57.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T57
							  </div>
							{/if}
							{if isset($userPc.67)}
			        	<div class="grid-item {$userPc.67.login}">
						    {$userPc.67.login_pc}<br>
						    {$userPc.67.st_code}<br>{$userPc.67.name}<i class="layui-icon {$userPc.67.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T67
							  </div>
							{/if}
							{if isset($userPc.18)}
			        	<div class="grid-item {$userPc.18.login}">
						    {$userPc.18.login_pc}<br>
						    {$userPc.18.st_code}<br>{$userPc.18.name}<i class="layui-icon {$userPc.18.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T18
							  </div>
							{/if}
							{if isset($userPc.28)}
			        	<div class="grid-item {$userPc.28.login}">
						    {$userPc.28.login_pc}<br>
						    {$userPc.28.st_code}<br>{$userPc.28.name}<i class="layui-icon {$userPc.28.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T28
							  </div>
							{/if}
							{if isset($userPc.38)}
			        	<div class="grid-item {$userPc.38.login}">
						    {$userPc.38.login_pc}<br>
						    {$userPc.38.st_code}<br>{$userPc.38.name}<i class="layui-icon {$userPc.38.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T38
							  </div>
							{/if}
							{if isset($userPc.48)}
			        	<div class="grid-item {$userPc.48.login}">
						    {$userPc.48.login_pc}<br>
						    {$userPc.48.st_code}<br>{$userPc.48.name}<i class="layui-icon {$userPc.48.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T48
							  </div>
							{/if}
							{if isset($userPc.58)}
			        	<div class="grid-item {$userPc.58.login}">
						    {$userPc.58.login_pc}<br>
						    {$userPc.58.st_code}<br>{$userPc.58.name}<i class="layui-icon {$userPc.58.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T58
							  </div>
							{/if}
							{if isset($userPc.68)}
			        	<div class="grid-item {$userPc.68.login}">
						    {$userPc.68.login_pc}<br>
						    {$userPc.68.st_code}<br>{$userPc.68.name}<i class="layui-icon {$userPc.68.ico} "></i>
						    </div>
							{else /}
							  <div class="grid-item">
							    T68
							  </div>
							{/if}




			    </div>


			</div>
		</div>
	</div>
</div>
{/block}
<!-- /主体 -->

<!-- 脚本 -->
{block name="script"}
<script src="{__LAYUI__}/layui.js"></script>
<script language="javascript" src="{__JS__}/laydate/laydate.js"></script>
<script>
layui.use('form', function(){
  var form = layui.form;

  // 监听下拉选择
  form.on('select(bjSelect)', function(data){
    // 自动提交表单（带500ms延迟等待动画）
    setTimeout(function(){
      document.getElementById('bjForm').submit();
    }, 500);
  });
});
</script>
<script>







	//保存用户信息
	$('.edit-save').on('click', function () {
		var pwd = $('[name="pwd"]').val(),
			newpwd = $('[name="newpwd"]').val(),
			newpwd2 = $('[name="newpwd2"]').val();
			
		if (pwd == '') {
			layer.msg('原密码不能为空');
			return;
		}
		if (newpwd == '' ) {
			layer.msg('新密码不能为空');
			return;
		}
		if (newpwd != newpwd2) {
			layer.msg('密码确认不正确');
			return;
		}



		$.ajax({
			url: "/home/user/password_submit",
			data: $('#userPwd').serialize(),
			type: 'post',
			async: false,
			success: function (res) {
				layer.msg(res.msg);
				if (res.code === 0) {
					setTimeout(function () {
						window.location.href = "{:url('/home/user/index')}";
					}, 1500);
				}
			}
		})
	});
</script>
{/block}
<!-- /脚本 -->